#include <iostream>
#include <cstdio>

using namespace std;

double mps;
int cups;
double t;
int n;

int main() {
    cin >> t >> n;
    mps = t / n;
    cups = n * 2;
    printf("%.3f\n%d", mps, cups);
    return 0;
}